<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="del_result" scope="request" class="com.xyzboom.beans.CourseDeleteResult"/>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:if test="${!del_result.successIds.isEmpty()}">
    <table>
        <tr>
            <th>成功删除的课程ID</th>
        </tr>
        <c:forEach items="${del_result.successIds}" var="successId">
            <tr>
                <td>${successId}</td>
            </tr>
        </c:forEach>
    </table>
</c:if>
<c:if test="${!del_result.failIds.isEmpty()}">
    <table>
        <tr>
            <th>删除失败的课程ID</th>
        </tr>
        <c:forEach items="${del_result.failIds}" var="failId">
            <tr>
                <td>${failId}</td>
            </tr>
        </c:forEach>
    </table>
</c:if>
<a href="<c:url value="/pages/course/allCourse.jsp"/>">返回课程查询界面</a>
</body>
</html>
